package org.example.clouddemo.recommend.feign;


import org.example.clouddemo.bean.common.entity.User;
import org.example.common.response.ApiResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "service-user", path = "/api/admin/user")
public interface UserFeignClient {

    @PostMapping("queryOne")
    ApiResult<User> queryOne(@Validated @RequestBody Long id);
}
